#include "mainwindow2.h"
#include "ui_mainwindow2.h"
#include<QPainter>


MainWindow2::MainWindow2(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow2)
{
    ui->setupUi(this);

}

MainWindow2::~MainWindow2()
{
    delete ui;
}
void MainWindow2::setPath(QString path)
{
    m_path=path;
}

QString MainWindow2::getPath()
{
    return m_path;
}
void MainWindow2::paintEvent(QPaintEvent*)
{
    QPainter painter(this);
    painter.drawPixmap(0,0,396,260,m_path);

}
